package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.LessionPlan;
import com.qdu.mapper.LessionPlanMapper;
import com.qdu.service.LessionPlanService;
@Service
public class LessionPlanServiceImpl implements LessionPlanService {

	@Autowired
	LessionPlanMapper lessionPlanMapper;

	@Override
	public LessionPlan selectLessionPlanById(int id) {
		return lessionPlanMapper.selectLessionPlanById(id);
	}

	@Override
	public boolean addLessionPlan(int mjid, int termId, String cid) {
		return lessionPlanMapper.addLessionPlan(mjid, termId, cid);
	}

	@Override
	public boolean modifyLessionPlan(LessionPlan lessionPlan, int mjid, int termId, String cid) {
		return lessionPlanMapper.modifyLessionPlan(lessionPlan, mjid, termId, cid);
	}

	@Override
	public boolean deleteLessionPlanById(int id) {
		return lessionPlanMapper.deleteLessionPlanById(id);
	}

	@Override
	public List<LessionPlan> selectAllLessionPlan() {
		return lessionPlanMapper.selectAllLessionPlan();
	}

	@Override
	public List<LessionPlan> selectLessionPlanBymjid(int mjid) {
		return lessionPlanMapper.selectLessionPlanBymjid(mjid);
	}

	@Override
	public List<LessionPlan> selectLessionPlanByTermId(int termId) {
		return lessionPlanMapper.selectLessionPlanByTermId(termId);
	}

	@Override
	public LessionPlan selectLessionPlanByMjidandTermIdandCid(int mjid, int termId, String cid) {
		return lessionPlanMapper.selectLessionPlanByMjidandTermIdandCid(mjid, termId, cid);
	}

	@Override
	public List<LessionPlan> selectLessionPlanBymjidAndtermId(int mjid, int termId) {
		return lessionPlanMapper.selectLessionPlanBymjidAndtermId(mjid, termId);
	}

}
